package com.itheima.health.dao;

import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 上传文件dao层
 *
 * @author hongBoZ
 * @since 2022/11/22 19:17
 */
@Mapper
public interface OrderSettingDao {

    /**
     * 文件上传，批量插入
     *
     * @param orderSettingList
     */
    void add(@Param("orderSettingList") List<OrderSetting> orderSettingList);

    /**
     * 文件上传，判断与库中数据是否冲突
     * @param orderSettingList
     * @return
     */
    int count(@Param("orderSettingList") List<OrderSetting> orderSettingList);

    List<OrderSetting> getOrderSettingByMonth(@Param("moth") String moth);


    //修改
    void editNumberByOrderDate(OrderSetting orderSetting);
    /**
     * 根据体检日期查询查询预约设置表
     * @author szh
     * @param orderDate
     * @return
     *
     */
    OrderSetting findByOrderDate(String orderDate);

    /**
     * 根据预约日期修改预约人数
     * @author szh
     * @param orderSetting
     */
    void updateOrderSetting(OrderSetting orderSetting);
}
